package br.com.regexps_compilacao;

import java.util.regex.*;

public class Programa12{
	public static void main(String [] a){
		Pattern p = Pattern.compile("\\d\\w");
		Matcher m = p.matcher("12ab345");
		while(m.find()){
			System.out.println(m.start() + " " + m.group());
		}
	}
}